import Axios from 'axios';


let servier = Axios.create({
    baseURL:'http://localhost:3000'
});


// 每个实例有不同的url
export const getPosts = (id) =>{
    return servier.get('posts',{
        params:{
            id:id
        }
    });

}

